﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HenIT.BizTalk.Objects
{
    public class ReceivePort
    {
        public bool Match { get; set; }
        public string Name { get; set; }
        public BoolMatch RouteFailedMessage { get; set; }
        public BoolMatch IsTwoWay { get; set; }
        public StringMatch AuthenticationType { get; set; }

        private List<StringMatch> inboundMaps = new List<StringMatch>();
        public List<StringMatch> InboundMaps
        {
            get { return inboundMaps; }
        }
        private List<StringMatch> outboundMaps = new List<StringMatch>();
        public List<StringMatch> OutboundMaps
        {
            get { return outboundMaps; }
        }

        private List<ReceiveLocation> receivelocations = new List<ReceiveLocation>();
        public List<ReceiveLocation> Receivelocations
        {
            get { return receivelocations; }
        }

        public void MatchPropertiesWith(ReceivePort rp2)
        {
            RouteFailedMessage.Value2 = rp2.RouteFailedMessage.Value;
            IsTwoWay.Value2 = rp2.IsTwoWay.Value;
            AuthenticationType.Name2 = rp2.AuthenticationType.Name;
        }
    }
}
